package com.gzsxy.sso.core.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.gzsxy.sso.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_app")
@ApiModel(value="app对象", description="")
public class App  extends BaseEntity {

  private static final long serialVersionUID=1L;

  @ApiModelProperty(value = "名称")
  private String name;

  @ApiModelProperty(value = "代码")
  private String code;

  @JsonFormat(pattern = "yyyy-MM-dd")
  @ApiModelProperty(value = "生效开始时间")
  private Date startDate;

  @JsonFormat(pattern = "yyyy-MM-dd")
  @ApiModelProperty(value = "生效结束时间")
  private Date endDate;

  @ApiModelProperty(value = "是否禁用（0否1是）")
  private Boolean isDisabled;

  @ApiModelProperty(value = "排序id")
  private Long orderId;

}
